package com.koron.order.overhaul.service;

import com.koron.order.overhaul.bean.entity.OverhaulMajorFormWorker;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * @author twcao
 * @title: OverhaulMajorFormWorkerService
 * @projectName GDH_EAM_V2
 * @description: 大修工单-表单-工作班成员
 * @date 2021/10/817:19
 */
public interface OverhaulMajorFormWorkerService {

    OverhaulMajorFormWorker queryById(SessionFactory factory, String id);

    List<OverhaulMajorFormWorker> queryList(SessionFactory factory, OverhaulMajorFormWorker OverhaulMajorFormWorker);

    int saveOrUpdate(SessionFactory factory, List<OverhaulMajorFormWorker> workers);

    int deleteById(SessionFactory factory, String id);

    int deleteByFormId(SessionFactory factory, String formId);

    int deleteByOrderId(SessionFactory factory, String orderId);
}
